package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.sup.SuperEntity;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户DAO业绩(sc_user_dao_performance)实体类
 *
 * @author zxy
 * @since 2023-12-12 17:26:18
 * @description 商户banner
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_user_dao_performance")
public class UserDaoPerformance extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * daoId
     */
    private Long daoId;
    /**
     * 记录日期
     */
    private String recordDate;
    /**
     * 用户Id
     */
    private Long userId;
    /**
     * 首发业绩
     */
    private BigDecimal firstPerformance;
    /**
     * 二级业绩
     */
    private BigDecimal secondPerformance;

    /**
     * 首发服务中心业绩
     */
    private BigDecimal firstCenterPerformance;
    /**
     * 二级服务中心业绩
     */
    private BigDecimal secondCenterPerformance;

    public void addFirstPerformance(BigDecimal value){
        this.firstPerformance = this.firstPerformance.add(value);
    }
    public void addSecondPerformance(BigDecimal value){
        this.secondPerformance = this.secondPerformance.add(value);
    }
    public void addFirstCenterPerformance(BigDecimal value){
        this.firstCenterPerformance = this.firstCenterPerformance.add(value);
    }
    public void addSecondCenterPerformance(BigDecimal value){
        this.secondCenterPerformance = this.secondCenterPerformance.add(value);
    }

}